import React, { Component } from 'react'
import { Switch,Route } from 'react-router-dom'
import HomePage from '../views/HomePage/HomePage'
import Users from '../views/Users/Users'
import Categories from '../views/Categories/Categories'
import RoleManagement from '../views/RoleMangement/RoleMangement'
import ProductsList from '../views/ProductsList/ProductsList'
import AddList from '../views/ProductsList/AddList'
import UpdateList from '../views/ProductsList/updateList'

export default class HomeRouter extends Component {
    render() {
        return (
            <Switch>
                <Route path='/home' component={HomePage}></Route>
                <Route path='/users' component={Users}></Route>
                <Route path='/role' component={RoleManagement}></Route>
                <Route path='/products/categories' component={Categories}></Route>
                <Route path='/products/list' component={ProductsList}></Route>
                <Route path='/products/addList' component={AddList}></Route>
                <Route path='/products/updateList' component={UpdateList}></Route>
            </Switch>
        )
    }
}
